package com.zsrt.java.day20170111.lh.daily.ch04;

import static org.junit.Assert.*;

import java.text.NumberFormat;
import java.util.Calendar;
import java.util.Date;

import org.junit.Test;

public class CalendarTest {
	
	@Test
	public void Calendar() throws Exception {
		
		Calendar c=Calendar.getInstance();
		Date date=c.getTime();
		int i = c.get(Calendar.DAY_OF_WEEK);
		System.out.println(i);
		
		//改变时间
		c.set(Calendar.YEAR,2017);
		c.set(Calendar.MONDAY, 1);
		c.set(Calendar.DATE,1);
		System.out.println(c.getTime());
		
	}
	
	@Test
	public void NumberFormatTest() throws Exception {
		NumberFormat nformat=NumberFormat.getNumberInstance();
		
		
	}

}
